<?php
$news = $data['detail'];
//dump($data);
?>
<!DOCTYPE html>
<html lang="zhcn">
<head>
    <include file="Common/meta" />
    <if condition="$news['cam_id'] eq '0'">
        <title>资讯详情 - {$_ENV['site'][0]['title']}</title>
    <else />
        <title>需求详情 - {$_ENV['site'][0]['title']}</title>
    </if>
    <include file="Common/link" />
</head>
<body>
<header class="layout-header">
    <div class="container">
        <h1 class="title">{$news['title']}</h1>
        <a class="header-back" href="#"><i class="icon icon-left"></i></a>
    </div>
</header>
<div class="layout-body">
    <div class="container">
        <section class="news-detail">
            <h1 class="news-detail-title">
                {$news['title']}
            </h1>
            <div class="news-detail-info">
                <if condition="$news['cam_id'] eq '0'">
                    <div class="author">发布方：平台 </div>
                    <else />
                    <div class="author">发布方：<a href="/cpn/detail?id={$news['cam_id']}" target="_blank">{$news['name']} </a> </div>
                </if>
                <div class="article-time">发布时间：{$news['update_time']|strtotime|date="Y-m-d H:i",###}</div>
            </div>
            <article>
                {$news['contain']}
            </article>
        </section>
    </div>
</div>
<include file="Common/script" />
</body>
</html>

